h1.title{
  text-align: center;
  margin-bottom: 20px;
}

.center{
  width: 600px;
  margin: 0 auto;
}
.chat-window {
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.chat-messages {
  padding: 10px;
  height: 420px;
  max-height: 500px;
  overflow-y: scroll;
}

.message {
  margin-top: 10px;
  display: flex;
  align-items: flex-start; /* Ensure messages align at the top */
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-received {
  display: flex;
  align-items: center;
}

.message-sent {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sent-message {
  justify-content: flex-end;
  text-align: right;
}

.received-message {
  justify-content: flex-start;
}

.message-content {
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 8px;
}

.sent-message .message-content {
  background-color: #007bff;
  color: #fff;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 10px;
  margin-right: 10px;
}
.chat-input {
  display: flex;
  padding: 10px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.chat-input button {
  padding: 8px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
